package com.hbpu.encap.smalllchange;

import java.util.Scanner;

public class SmallChangeSys {
    public static void main(String[] args) {
        boolean loop = true;
        Scanner scanner = new Scanner(System.in);
        int key;
        do {
            System.out.println("---------------零钱通菜单---------------");
            System.out.println("\t\t\t1. 零钱通明细");
            System.out.println("\t\t\t2. 收益 入账");
            System.out.println("\t\t\t3. 消     费");
            System.out.println("\t\t\t0. 退     出");
            System.out.print("请输入菜单选项(1-4)：");
            key = scanner.nextInt();
            switch (key) {
                case 1:
                    System.out.println("零钱通明细");
                    break;
                case 2:
                    System.out.println("收益入账");
                    break;
                case 3:
                    System.out.println("消费");
                    break;
                case 0:
                    System.out.println("系统退出");
                    loop = false;
                    break;
                default:
                    System.out.print("操作序号输入错误，请重新输入：");
            }
        } while (loop);
    }
}
